package com.lzq.badminton.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("court")
public class Court {

    @TableId
    private Long id;

    private Long arenaId;

    private Integer courtNum;

    private String timeSlot;

    private LocalDate date;

    private Integer state;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
